function isIosDevice(){
    return /(phone|pad|pod|iPhone|iPod|ios|iPad)/gi.test(navigator.userAgent);
}

if(!isIosDevice()){
    window.location.href='https://www.baidu.com/';
}